<?php

class Users_EditErrorView extends SrsUsersBaseView
{
	public function executeHtml(AgaviRequestDataHolder $rd)
	{
		$this->setupHtml($rd);

		$this->getLayer('content')->setTemplate('EditInput');

		$user = $rd->getParameter('user');
		$user['id'] = $rd->getParameter('id');

		$referer = $rd->getParameter('referer', $this->genUrl('user.read', array('id' => $user['id'])));

		$this->setAttribute('user', $user);
		$this->setAttribute('roles', $this->user->getAvailableRoles());
		$this->setAttribute('referer', $referer);
	}
}